﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using SSB.Web.Mvc;
namespace Wiwi.ViewModels
{
    public class Registration
    {
        [Required(ErrorMessage = "You forgot your first name!")]
        public string Firstname { get; set; }

        [Required(ErrorMessage = "You forgot your last name!")]
        public string Lastname { get; set; }

        [Required(ErrorMessage = "Your Alias!")]
        public string UserName { get; set; }

        [Required(ErrorMessage = "Password please!")]
        public string Password { get; set; }

        public string BirthDate { get; set; }

        [Required(ErrorMessage = "Email please!")]
        [RegularExpression("^[a-z0-9_\\+-]+(\\.[a-z0-9_\\+-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*\\.([a-z]{2,4})$", ErrorMessage = "Not a valid email.")]
        public string email { get; set; }

        //[ValidateMvcCaptcha(ErrorMessage="Captcha response is not valid.")]
        public string CaptchaValue { get; set; }
    }
    public class RegistrationTop
    {
        public string Firstname { get; set; }
        public string Lastname { get; set; }
        public string UserName { get; set; }
        public string email { get; set; }
        //[ValidateMvcCaptcha(ErrorMessage="Captcha response is not valid.")]
        //public string CaptchaValue { get; set; }
    }
}